package com.culture.config.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.culture.config.dao.entity.UserRole;
import com.github.pagehelper.Page;

@Mapper
public interface UserRoleMapper {
	Page<UserRole> page(UserRole userRole);
	
	List<UserRole> listByUserId(UserRole userRole);

	int delByUserId(@Param(value = "userId") Long userId);

	int add(UserRole userRole);
}
